import request from '@/utils/request'

// 查询流程配置列表
export function listWorkflowConfig(query) {
  return request({
    url: '/system/workflowConfig/list',
    method: 'get',
    params: query
  })
}

// 查询流程配置详细
export function getWorkflowConfig(guid) {
  return request({
    url: '/system/workflowConfig/' + guid,
    method: 'get'
  })
}

// 新增流程配置
export function addWorkflowConfig(data) {
  return request({
    url: '/system/workflowConfig',
    method: 'post',
    data: data
  })
}

// 修改流程配置
export function updateWorkflowConfig(data) {
  return request({
    url: '/system/workflowConfig',
    method: 'put',
    data: data
  })
}

// 删除流程配置
export function delWorkflowConfig(guid) {
  return request({
    url: '/system/workflowConfig/' + guid,
    method: 'delete'
  })
}

// 导出流程配置
export function exportWorkflowConfig(query) {
  return request({
    url: '/system/workflowConfig/export',
    method: 'get',
    params: query
  })
}

// 查询流程配置列表
export function workflowTypelist() {
  return request({
    url: '/system/workflowConfig/workflowTypelist',
    method: 'get'
  })
}